<?php

use \app\common\service\UrlService;
use \app\common\service\StaticService;
use \app\common\service\UtilService;

StaticService::includeAppJsStatic("/js/m/default/index.js", \app\assets\CustomerAsset::className());
?>
<!--<div class="shop_header">-->
<!--    <i class="shop_icon"></i>-->
<!--    <strong>--><? //= UtilService::encode($info['name']); ?><!--</strong>-->
<!--</div>-->

<!---title-->
<div>
    <img src="/images/m/title_page.png" class="title_img">
</div>

<?php if ($image_list): ?>
    <div id="slideBox" class="slideBox">
        <div class="bd">
            <ul>
                <?php foreach ($image_list as $_image_info): ?>
                    <li><img style="max-height: 160px;"
                             src="<?= UrlService::buildPicUrl("brand", $_image_info["image_key"]); ?>"/></li>
                <?php endforeach; ?>
            </ul>
        </div>
        <div class="hd">
            <ul></ul>
        </div>
    </div>
<?php endif; ?>

<!--link 部分-->
<div class="cartitem">
    <a href="javascript:void(0)" class="xy">
        <i></i>
        <span>近期活动</span>
    </a>
    <a href="<?= UrlService::buildCustomerUrl("/yuyue/index"); ?>" class="jf">
        <i></i>
        <span>在线预约</span>

    </a>
    <a href="javascript:void(0)" class="sy">
        <i></i>
        <span>消费记录</span>
    </a>
    <a href="javascript:void(0)" class="remind">
        <i></i>
        <span>在线充值</span>
    </a>
    <a href="javascript:void(0)" class="xy">
        <i></i>
        <span>订购服务</span>
    </a>
    <a href="javascript:void(0)" class="jf">
        <i></i>
        <span>优秀活动</span>

    </a>
    <a href="javascript:void(0)" class="sy">
        <i></i>
        <span>用车小知识</span>
    </a>
    <a href="javascript:void(0)" class="remind">
        <i></i>
        <span>关于我们</span>
    </a>
</div>

<div class="probox">
    <?php if ($list): ?>
        <ul class="prolist">
            <?php foreach ($list as $_item): ?>
                <li>
                    <a href="<?= UrlService::buildCustomerUrl("/product/info", ['id' => $_item['id']]); ?>">
                        <i><img src="<?= $_item['main_image_url']; ?>" style="width: 100%;height: 200px;"/></i>
                        <span><?= $_item['name']; ?></span>
                        <b><label>月销量<?= $_item['month_count']; ?></label>¥<?= $_item['price']; ?></b>
                    </a>
                </li>
            <?php endforeach; ?>
        </ul>
    <?php else: ?>
        <div class="no-data">

        </div>
    <?php endif; ?>
</div>

<!--页面一些预约的图片-->
<!--<div class="activity">-->
<!--    <a href="">-->
<!--        <i></i>-->
<!--        <span>汽车发动机清洗检修</span>-->
<!--    </a>-->
<!--    <a href="">-->
<!--        <i></i>-->
<!--        <span>汽车发动机清洗检修</span>-->
<!--    </a>-->
<!--    <a href="">-->
<!--        <i></i>-->
<!--        <span>汽车发动机清洗检修</span>-->
<!--    </a>-->
<!--    <a href="">-->
<!--        <i></i>-->
<!--        <span>专业的工作人员、熟练技术。汽车车内全面清洁</span>-->
<!--    </a>-->
<!---->
<!--</div>-->

<!--<div class="fastway_list_box">-->
<!--    <ul class="fastway_list">-->
<!--        <li><a href="--><? //= UrlService::buildNullUrl(); ?><!--"-->
<!--               style="padding-left: 0.1rem;"><span>品牌名称：--><? //= UtilService::encode($info['name']); ?><!--</span></a></li>-->
<!--        <li><a href="--><? //= UrlService::buildNullUrl(); ?><!--"-->
<!--               style="padding-left: 0.1rem;"><span>联系电话：--><? //= UtilService::encode($info['mobile']); ?><!--</span></a></li>-->
<!--        <li><a href="--><? //= UrlService::buildNullUrl(); ?><!--"-->
<!--               style="padding-left: 0.1rem;"><span>联系地址：--><? //= UtilService::encode($info['address']); ?><!--</span></a></li>-->
<!--        <li><a href="--><? //= UrlService::buildNullUrl(); ?><!--"-->
<!--               style="padding-left: 0.1rem;"><span>品牌介绍：--><? //= UtilService::encode($info['description']); ?><!--</span></a>-->
<!--        </li>-->
<!--    </ul>-->
<!--</div>-->